#include <iostream>
using std::cout;
using std::endl;
class Point{
public:
    Point(int x,int y):_x(x),_y(y)
    {
        //cout<<"Point:"<<_x<<","<<_y<<endl;
    }
    ~Point()
    {
        cout<<"~Point"<<endl;
    }
    void Print(){
        cout<<"Point:"<<_x<<","<<_y<<endl;
    }
private:
    int _x;
    int _y;
};
int main(void)
{
    //Point p(1,2);
    //p.Print();
    //cout<<"1------------------"<<endl;
    //p.~Point();
    //cout<<"2------------------"<<endl;
    //p.Print();
    char*p = (char*)malloc(sizeof(char));
    free(p);
    p = nullptr;
    //cout<<"cout p:"<<p; //这么写程序会崩溃

    return 0;
    
}